package com.qj.travel.db.dao;

import com.qj.travel.db.model.SnapInfoModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2016/10/1.
 */
public interface SnapInfoDao {
    List<SnapInfoModel> getSnapInfoList();
    List<SnapInfoModel> getSnapBySort(@Param("videoClass") String videoClass,@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    List<SnapInfoModel> getSnapPublished(@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    List<SnapInfoModel> getSnapPublishedBySort(@Param("videoClass") String videoClass, @Param("startRow") int startRow, @Param("pageSize") int pageSize);
    SnapInfoModel getSnapInfo(int videoId);
    int insertSnapInfo(SnapInfoModel snapInfoModel);
    List<SnapInfoModel> getSnapInfoListByPage(@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    int deleteSnap(int snapId);
    List<SnapInfoModel> getSnapNotPublished(@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    int updateLock(int videoId);
    int updatePublish(int videoId);
    int cancelPublish(int videoId);
    int updateNotPass(int videoId);
    int updateClass(@Param("videoId") int videoId,@Param("videoClass") String videoClass);
    List<SnapInfoModel> getSnapByUser(String userId);
    List<SnapInfoModel> getSnapByUserPublished(String userId);
    List<SnapInfoModel> getSnapByUserNotPublished(String userId);
    List<SnapInfoModel> getSnapByUserNotPass(String userId);
    List<SnapInfoModel> getSnapNotPass();
}
